<?php
session_start();
include("include/config.php");
include('class/json.php');
$validate_array=array("validate","check","admin","noobskool");
if(in_array($_REQUEST['chk_val'],$validate_array)){
   echo json_encode(

				array(

					'flag'	=>	1,
					'user_id' => $reviewed_by,
					'coach_id' =>  $coach_id,
					'sql' => $avg
				)
			);
}

?>